revise Powershell PATH setting
authorKevin Albertson <kevin.albertson@10gen.com>
Tue, 20 May 2025 00:02:01 +0000 (20:02 -0400)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 00:02:01 +0000 (20:02 -0400)
Use capital `$Env` instead of `$env` to match conventions.
Prefix `PATH` to avoid referring unintentional binaries.
Prefer `\` over `/` to match conventions.

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
.github/workflows/cmake.yml

index 52b3c40a6135df992fee38afb92d973e9a91ff2f..7139f6eca4cc1677deeaa92888bd6c77401f0552 100644 (file)
@@ -39,7 +39,7 @@ jobs:
         cmake --install build --prefix tmp/install --config Debug
         cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install
         cmake --build test/app/build
-        $env:PATH+=";$PWD/tmp/install/bin"
+        $Env:PATH = "$PWD\tmp\install\bin;$Env:PATH"
         test/app/build/Debug/app.exe
     - name: Test Consuming (Unix)
       if: ${{ matrix.os != 'windows-latest' }}